package com.ruoyi.plugs.pv.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PvConfig {

    public PvConfig(@Value("${plugs.pv.scope}") String scope,
                    @Value("${plugs.pv.urls}") String pvUrls,
                    @Value("${plugs.pv.cacheMinute}") Integer pvCacheMinute,
                    @Value("${plugs.pv.serverContextPath}") String serverContextPath) {
        PvConfig.scope = scope;
        PvConfig.pvUrls = pvUrls;
        PvConfig.pvCacheMinute = pvCacheMinute;
        PvConfig.serverContextPath = serverContextPath;
    }

    public static String scope;

    public static String pvUrls;

    public static Integer pvCacheMinute;

    public static String serverContextPath;

    public static String getScope() {
        return scope;
    }

    public static String getPvUrls() {
        return pvUrls;
    }

    public static Integer getPvCacheMinute() {
        return pvCacheMinute;
    }

    public static String getServerContextPath() {
        return serverContextPath;
    }

}
